#include<stdio.h>

int main()
{
	int x1,y1,x2,y2,u,i,o,p;
	int a,b,c;
	scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&x2,&y2,&u,&i,&o,&p);
	a=y2-y1;
	b=x1-x2;
	c=x1*y2-y1*x2;
	if(a*u+b*i<c&&a*o+b*p<c)
	printf("YES");
	else if (a*i+b*i>c&&a*o+b*p>c)
	printf("YES");
	else
	printf("NO");
	
	
	return 0;
}
